#pragma once
#include "geometry.h"
#include "Material.h"

class CSphere
{
public:
	CSphere(const Vec3f Incenter, const float Inradius):
		center(Incenter), radius(Inradius)
	{}

	CSphere(const Vec3f Incenter, const float Inradius, const CMaterial Inmaterial) :
		center(Incenter), radius(Inradius), material(Inmaterial)
	{}

	bool ray_interset(const Vec3f& orig, const Vec3f& dir, float& t) const;

//private:
	Vec3f center;
	float radius;
	CMaterial material;
};

